package com.project.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("patient_info")
public class PatientInfo {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Long doctorId;  // 主治医生ID
    private String idCard;
    private String address;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;


    private String medicalHistory;   // 既往病史
    private String allergies;        // 过敏史
    private String familyHistory;    // 家族病史


}
